package di.ass.database;

public class Formula {
	private int id;
	private String name;
	private String date;
	private boolean isChecked;
	private int isFull; // =0 mua chua het, -1 mua co thuc pham, 1 mua het

	public Formula() {
		isChecked = false;
		isFull = -1;
	}

	public Formula(Formula formula) {
		setName(formula.getName());
		setDate(formula.getDate());
		this.id = formula.getId();
	}

	public Formula(int id, String name, String date) {
		this.id = id;
		this.name = name;
		this.date = date;
		isChecked = false;
	}

	public Formula(String name, String date) {
		this.name = name;
		this.date = date;
		isChecked = false;
	}

	public Formula(int id, String name, String date, boolean isChecked) {
		this.id = id;
		this.name = name;
		this.date = date;
		this.isChecked = isChecked;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getDate() {
		return date;
	}

	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}

	public boolean getChecked() {
		return isChecked;
	}

	public int getFull() {
		return isFull;
	}

	public void setFull(int isFull) {
		this.isFull = isFull;
	}
}